// default config
module.exports = {
  workers: 1,
  cook: {
    domain: '', // 表示Cookie的域
    path: '/', // cookie的路径
    maxAge: 10 * 3600 * 1000, // cookie存储时间,10个消失
    signed: true, // 是否需要签名
    keys: ['key'], // 加密密钥
    httpOnly: false
  },
  tokenSecret: 'testtoken', // token密钥
  cors: {
    origin: '*',
    methods: 'GET,PUT,OPTIONS,POST,PATCH,DELETE,HEAD',
    preflightContinue: false
  },
  errnoField: 'code',
  errmsgField: 'msg',
  defaultErrno: 0,

  APPID: 'wxd9923c80acc4b6e8',
  APPSECRET: 'd8a89f179f499b87a0cf52934643c45f',
  AUTHORIZATIONCODE: 'authorization_code',
  CLIENTCREDENTIAL: 'client_credential'
};
